#ifndef X37_H
#define X37_H

#include "common.h"

template <AllegroVersion version>
struct x37
{
    uint32_t t;
    uint32_t k;
    uint32_t ptr1;
    uint32_t un2;
    uint32_t capacity;
    uint32_t count;
    uint32_t un3;
    uint32_t ptrs[100];
#if __cplusplus >= 202002L
    COND_FIELD(version >= A_174, uint32_t, un4);
#endif
    uint32_t TAIL;
    operator x37<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_174};
};

#if __cplusplus < 202002L
template <> struct x37<A_174>
{
    uint32_t t;
    uint32_t k;
    uint32_t ptr1;
    uint32_t un2;
    uint32_t capacity;
    uint32_t count;
    uint32_t un3;
    uint32_t ptrs[100];
    uint32_t un4;

    uint32_t TAIL;
    operator x37<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_174};
};
#endif

#endif // X37_H
